package org.colin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.colin.dictPojo.DEntryVideo;

import java.util.HashMap;
import java.util.List;

/**
 * <p>
 * 词典图片表 Mapper 接口
 * </p>
 *
 * @author LiRuiFeng
 * @since 2021-01-09
 */
public interface DEntryVideoMapper extends BaseMapper<DEntryVideo> {

    boolean createEntryVideoTable(@Param("tableName") String newEntryTableName);

    List<HashMap> selectAllVideoByEntryId(@Param("tableName")String imageTableName, @Param("id")Integer id);

    void deleteVideoByEntryId(@Param("tableName")String imageTableName, @Param("id")Integer id);

    void addVideo(@Param("tableName")String videoTableName, @Param("entry")DEntryVideo dEntryVideo);
}
